<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 引入easyui的样式 -->
<link rel="stylesheet"  type="text/css" href="${pageContext.request.contextPath}/themes/default/easyui.css">
<link rel="stylesheet"  type="text/css" href="${pageContext.request.contextPath}/themes/icon.css">
<!-- js文件 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
</head>
<script type="text/javascript">
$(function(){
	$('#StuList').datagrid({
		url:"selectMark", 
		queryParams: {			
			sid:"${currentUser.sid}",
		}
	});
});

$(function(){
	//更改底部工具栏
	var pager = $('#StuList').datagrid('getPager');	
	  pager.pagination({
		pageList: [10,20,30],
	});
});			
</script>
<body>
	 <table id="StuList" title="个人成绩查询" class="easyui-datagrid"
            toolbar="#toolbar" pagination="true" fit="true" pageSize="20" 
            rownumbers="true" fitColumns="true" border="false">         
        <thead>
            <tr>              
                <th field="cname" width="50" resizable="false">课程名字</th>
                <th field="tname" width="50" resizable="false">授课老师</th>
                <th field="score" width="50" resizable="false">成绩</th>
                <th field="sname" width="50" resizable="false">学生名字</th>
                <th field="sid"  hidden="true">学生ID</th>
            </tr>
        </thead>
    </table>  
</body>
</html>